import 'package:flutter/material.dart';

class MessagePage extends StatelessWidget {
  final Map arguments;

  MessagePage({this.arguments});

  @override
  Widget build(BuildContext context) {
    return MyMessagePage(arguments);
  }
}

class MyMessagePage extends StatefulWidget {
  final Map arguments;

  MyMessagePage(this.arguments);

  @override
  _MyMessagePageState createState() => _MyMessagePageState();
}

class _MyMessagePageState extends State<MyMessagePage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: ListView(
        children: [
          Container(
            child: ListTile(
              leading: Container(
                width: 60,
                height: 60,
                decoration: BoxDecoration(
                  image: DecorationImage(
                      image: NetworkImage('http://tsanfong.top/2021-1.png'),
                      fit: BoxFit.cover),
                  color: Color.fromRGBO(240, 240, 240, 1),
                ),
              ),
              title: Text('杰尼龟'),
              subtitle: Container(
                child: Text('啊哈哈哈哈'),
              ),
              trailing: Text(
                '20:20',
                style: TextStyle(color: Color.fromRGBO(150, 150, 150, 1)),
              ),
            ),
            decoration: BoxDecoration(color: Color.fromRGBO(250, 250, 250, 1)),
          ),
          Divider(
            height: 1,
          ),
          Container(
            child: ListTile(
              leading: Container(
                width: 60,
                height: 60,
                decoration: BoxDecoration(
                  image: DecorationImage(
                      image: NetworkImage('http://tsanfong.top/2021-1.png'),
                      fit: BoxFit.cover),
                  color: Color.fromRGBO(240, 240, 240, 1),
                ),
              ),
              title: Text('杰尼龟'),
              subtitle: Text('啊哈哈哈哈'),
              trailing: Text(
                '20:20',
                style: TextStyle(color: Color.fromRGBO(150, 150, 150, 1)),
              ),
            ),
            decoration: BoxDecoration(color: Color.fromRGBO(250, 250, 250, 1)),
          ),
        ],
      ),
      decoration: BoxDecoration(color: Color.fromRGBO(230, 230, 230, 1)),
    );
  }
}
